package com.suma.platform.core.exception;

/**
 * @author suma
 * @date 2017/12/4 上午11:28
 */
public class SumaException extends RuntimeException {

	private String errorCode;

	public SumaException() {
		super();
	}

	public SumaException(String message) {
		super(message);
	}

	public SumaException(String message, Throwable cause) {
		super(message, cause);
	}

	public SumaException(Throwable cause) {
		super(cause);
	}

	protected SumaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public SumaException(String errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
